package pojo;

import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;

public class Products implements Serializable {
    private Integer pid;
    private String pname;
    private String ploct;
    private Double pprice;
    private String ptype;
    private String pimg;
    private MultipartFile file;

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getPloct() {
        return ploct;
    }

    public void setPloct(String ploct) {
        this.ploct = ploct;
    }

    public Double getPprice() {
        return pprice;
    }

    public void setPprice(Double pprice) {
        this.pprice = pprice;
    }

    public String getPtype() {
        return ptype;
    }

    public void setPtype(String ptype) {
        this.ptype = ptype;
    }

    public String getPimg() {
        return pimg;
    }

    public void setPimg(String pimg) {
        this.pimg = pimg;
    }

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    @Override
    public String toString() {
        return "Products{" +
                "pid=" + pid +
                ", pname='" + pname + '\'' +
                ", ploct='" + ploct + '\'' +
                ", pprice=" + pprice +
                ", ptype='" + ptype + '\'' +
                ", pimg='" + pimg + '\'' +
                ", file=" + file +
                '}';
    }
}
